{% extends 'base.html' %}
{% block content %}
<h1>{% if form.instance.pk %}编辑作者{% else %}添加作者{% endif %}</h1>
<form method="post">{% csrf_token %}
    {{ form.as_p }}
    <button type="submit">保存</button>
</form>
<a href="{% url 'author-list' %}">返回作者列表</a>
{% endblock %} 